how to integrate a curve in origin